package internal

type AuthRespData struct {
	Scope       string `json:"scope"`
	AccessToken string `json:"access_token"`
	TokenType   string `json:"token_type"`
	AppId       string `json:"app_id"`
	ExpiresIn   int64  `json:"expires_in"`
	Nonce       string `json:"nonce"`
}

type CreatePayReq struct {
	Intent        string                       `json:"intent"`
	PurchaseUnits []*CreatePayReqPurchaseUnits `json:"purchase_units"`
	PaymentSource struct {
		Paypal struct {
			ExperienceContext *CreatePayReqExperienceContext `json:"experience_context"`
		} `json:"paypal"`
	} `json:"payment_source"`
}
type CreatePayReqPurchaseUnits struct {
	ReferenceId string `json:"reference_id"`
	Amount      struct {
		CurrencyCode string `json:"currency_code"`
		Value        string `json:"value"`
	} `json:"amount"`
}
type CreatePayReqExperienceContext struct {
	PaymentMethodPreference string `json:"payment_method_preference"`
	BrandName               string `json:"brand_name"`
	Locale                  string `json:"locale"`
	LandingPage             string `json:"landing_page"`
	ShippingPreference      string `json:"shipping_preference"`
	UserAction              string `json:"user_action"`
	ReturnUrl               string `json:"return_url"`
	CancelUrl               string `json:"cancel_url"`
}
